import request from '@/utils/request'

export function qeuryFriend() {
    return request({
        url: '/system/friend/all',
        method: 'get'
    })
}

export function isAndTop(data) {
    return request({
        url: '/system/cancelAndTop',
        method: 'post',
        data:data
    })
}

export function delFriend(id){
    return request({
        url: '/system/del/'+id,
        method: 'delete'
    })
}

export function mayAdd(query) {
    return request({
      url: '/system/may/add',
      method: 'get',
      params: query
    })
}